<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>冷链承运商全场景可视化SOP系统 - 版本管理</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }
        body {
            background-color: #f5f5f5;
            color: #333;
            padding: 0;
            margin: 0;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: #fff;
            padding: 20px;
        }
        h1 {
            font-size: 24px;
            color: #333;
            margin-bottom: 20px;
            font-weight: normal;
        }
        .file-list {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
        }
        .file-list th {
            background-color: #fff;
            padding: 10px 15px;
            text-align: left;
            font-weight: bold;
            color: #ff6a00;
            border-bottom: 1px solid #eaeaea;
        }
        .file-list td {
            padding: 10px 15px;
            border-bottom: 1px solid #f5f5f5;
            vertical-align: middle;
        }
        .file-list tr:hover {
            background-color: #f9f9f9;
        }
        .file-name {
            color: #ff6a00;
        }
        .file-name a {
            color: #ff6a00;
            text-decoration: none;
        }
        .file-name a:hover {
            text-decoration: underline;
        }
        .empty-message {
            text-align: center;
            padding: 30px;
            color: #999;
            font-style: italic;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>冷链承运商全场景可视化SOP系统_版本管理</h1>
        
        <div th:if="${#lists.isEmpty(files)}" class="empty-message">
            <p>没有找到任何文件。请确保路径中有文件。</p>
        </div>
        
        <table th:unless="${#lists.isEmpty(files)}" class="file-list">
            <thead>
                <tr>
                    <th>File Name</th>
                    <th>File Size</th>
                    <th>Date</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="file : ${files}">
                    <td class="file-name">
                        <a th:href="@{'/versions/download/' + ${file.fileName}}" th:text="${file.fileName}">文件名</a>
                    </td>
                    <td th:text="${file.formattedSize}">大小</td>
                    <td th:text="${#dates.format(file.lastModified, 'yyyy-MM-dd HH:mm')}">修改日期</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html> 